make: main.o index.o
	gcc -g -Wall -pthread -lm main.o index.o -o search-engine

main.o: index.c
	gcc -Wall -g -c main.c -o main.o

testhash:  index.o test.o
	gcc -Wall test.o index.o -lm -o testhash

index.o: index.c
	gcc -Wall -g -c index.c -o index.o

test.o: test.c
	gcc -Wall -g -c test.c -o test.o

clean:
	rm *.o search-engine
